package com.erp.auto.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.core.web.oldDomain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

/**
 * 自动化计划分享业务对象 erp_auto_plan_share
 *
 * @author WXX
 * @date 2024-03-18
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ErpAutoPlanShareBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 计划id
     */
    @NotNull(message = "计划id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long planId;

    /**
     * 名称
     */
//    @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String shareName;

    /**
     * 计划类型（0：上架，1：下架，2：信息模块，3：测评）
     */
    @NotNull(message = "计划类型（0：上架，1：下架，2：降价，3：涨价，4：信息模块，5：测评）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer planType;

    /**
     * 乐观锁
     */
//    @NotBlank(message = "乐观锁不能为空", groups = { AddGroup.class, EditGroup.class })
    private String revision;


}
